package com.yfp.machine.enums;

public enum PalyAdPositionEnum {
    //播放广告屏幕 1：主屏全屏 2：辅屏全屏 3：主屏主页 4：副屏主页
    SCREEN_FULL_SCREEN(1,"主屏全屏"),
    SCREEN_SECOND_SCREEN_FULL_SCREEN(2,"副屏全屏"),
    SCREEN_MAIN_SCREEN_HOME(3,"主屏主页"),
    SCREEN_SECOND_SCREEN_HOME(4,"副屏主页");

    private Integer value;
    private String name;

    PalyAdPositionEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static PalyAdPositionEnum getEnum(Integer value) {
        for (PalyAdPositionEnum palyAdPositionEnum : PalyAdPositionEnum.values()) {
            if (palyAdPositionEnum.getValue().equals(value)) {
                return palyAdPositionEnum;
            }
        }
        return null;
    }
}
